﻿using JinfuyuanProject.Entity;
using JinfuyuanProject.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace JinfuyuanProject.Service
{
    public class MailBoxService:IMailBoxService
    {
        private readonly IMailBoxRepository _mailBoxRepository;
       
        public MailBoxService(IMailBoxRepository mailBoxRepository)
        {
            _mailBoxRepository= mailBoxRepository;
        }
        public List<MessageInfo> GetData()
        {
            return _mailBoxRepository.GetData();
        }
    }
}
